/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ASAExpr;

import exception.DivisionByZeroException;
import exception.VariableNonDeclareeException;

/**
 *
 * @author FM & KB
 */
public class ASAExprInferioriteEgalite extends ASAExprComparaison {
    
    public ASAExprInferioriteEgalite(ASAExpr e1, ASAExpr e2){
        super(e1,e2);
    }
    
    @Override
    public int evalue()  throws VariableNonDeclareeException, DivisionByZeroException{
           return ((partieGauche.evalue() <= partieDroite.evalue()) ? 1 : 0);
    }

    @Override
    public String getLabelExplorateur() {
        return "INFERIORITE_EGALITE";
    }
    
}
